package com.yugao.fintech.antelope.infra.file.assembly;

import com.yugao.fintech.antelope.infra.module.file.model.entity.MediaMaterial;
import com.yugao.fintech.antelope.infra.module.file.model.rqrs.MediaMaterialResp;
import com.yugao.fintech.antelope.infra.module.file.model.rqrs.MediaMaterialSaveReq;
import com.yugao.fintech.antelope.infra.module.file.model.rqrs.MediaMaterialUpdateReq;
import org.mapstruct.Mapper;

/**
 * 素材
 *

 */
@Mapper(componentModel = "spring")
public interface MaterialAssembly {
  MediaMaterialResp toMaterialResp(MediaMaterial source);
  
  MediaMaterial toMaterial(MediaMaterialSaveReq source);
  
  MediaMaterial toMaterial(MediaMaterialUpdateReq source);
}
